package org.yogurtcat.server.modules.system.role.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.yogurtcat.server.modules.system.role.domain.Role;

public interface RoleRepository extends Repository<Role, Long>, JpaSpecificationExecutor<Role> {

	void save(Role value);

	List<Role> findAll();

	Role findById(Long id);

	void deleteById(Long id);

	Role findByName(String name);
}
